﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using EzFrameWork;

public partial class SocketClientPanel
{
    string Msg;
    //初始化函数 用于获取UI组件等
    private void AddLisiners()
    {
        listInputField.Add(MessageInupt);
        SendBtn.onClick.AddListener(() =>
        {
            LoginBtn.onClick.AddListener(() =>
            {

            });
            listInputField.Add(MessageInupt);
            SendBtn.onClick.AddListener(() =>
            {
                Debug.Log("SendBtn");
            });
            LoginBtn.onClick.AddListener(() =>
            {
                Debug.Log("LoginBtn");
            });
            if (listInputField.Count > 0)
            {
                foreach (InputField item in listInputField)
                {
                    item.onValueChanged.AddListener(value => { Debug.Log(item.name + ":" + value); Msg = value; });
                }
            }
        });
}
}